package at.guigu.service.impl;

import at.guigu.dao.BrandDao;
import at.guigu.pojo.Brand;
import at.guigu.service.BrandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class BrandServiceImpl implements BrandService {
    @Autowired
    private BrandDao brandDao;

    @Override
    public List<Brand> getAll() {
        return brandDao.all();
    }

    @Override
    public Brand getById(Integer id) {
        return brandDao.selectById(id);
    }

    @Override
    public List<Brand> selectBySingleConOne(Integer id) {
        return brandDao.selectBySingleConOne(id);
    }

    @Override
    public List<Brand> selectBySingleConTwo(Brand brand) {
        return brandDao.selectBySingleConTwo(brand);
    }

    @Override
    public List<Brand> selectBySingleConTwoo(Map map) {
        return brandDao.selectBySingleConTwoo(map);
    }

    @Override
    public List<Brand> selectByMaxConOne(Brand brand) {
        return brandDao.selectByMaxConOne(brand);
    }

    @Override
    public List<Brand> selectByMaxConTwo(Map map) {
        return brandDao.selectByMaxConTwo(map);
    }
}
